import request from '@/request/request.js';

// 协议详情 其它OTHER, 隐私PRIVACY_POLICY, 用户USER_POLICY
export const getArticle = (type) => {
  return request({
    url: `/org/app/article/${type}`,
    method: 'get',
  }, false)
}

// 获取app版本
export const getAppVersion = (data) => {
  return request({
    url: '/org/app/version/lastVersion',
    method: 'get',
    data
  }, false)
}

// 修改用户资料
export const putUser = (data) => {
  return request({
    url: '/org/app/system/user/profile',
    method: 'put',
    data
  })
}